package com.aerfafish.spider.neo4j.dao;

import lombok.Data;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Property;
import org.neo4j.ogm.annotation.Relationship;

import java.util.Set;

@NodeEntity("Company")
@Data
public class Company {

    @Id
    Long id;

    // 公司代码
    @Property
    String code;

    // 公司持股状态
    @Relationship(type = "COMPANY_HOLD_SHARE")
    Set<CompanyHoldShare> companyHoldShares;

    @Relationship(type = "COMPANY_MANAGE_FUND")
    Set<CompanyManageFund> companyManageFunds;

}
